<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/global.jsp"%>
<html>
<head>
<title>个人记帐</title>
<link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/core.css"/>
<link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/tree_tabs.css"/>
    <%@include file="/common/com.jsp"%>
<style>
    .continer{

        width:500px;
        min-height:500px;
    }
    .left{
        width:100px;
        float:left;
        height:50px;
    }
    .right{
        width:300px;
        float:left;
        height:50px;
        margin-left:50px;
    }
</style>
</head>
<body>

<form action="${path}/user/saveuser" method="post">
<div class="continer">
    <label>
        <div class="left">用户名</div><div class="right">${user.username}</div>
        <input type="hidden" name="id" value="${user.id}"/>
    </label>

    <label>
        <div class="left">email:</div><div class="right"><input type="text" name="email" value="${user.email}"/> </div>
    </label>
    <label>
        <div class="left">年龄:</div><div class="right"><input type="text" name="age" value="${user.age}"/></div>
    </label>
    <label>
        <div class="left">性别:</div>
        <div class="right">
            <select name="sex">
                <option value="1" ${user.sex eq '1'?'selected':''}>男</option>
                <option value="2" ${user.sex eq '2'?'selected':''}>女</option>
                <option value="3" ${user.sex==null||user.sex=='3'?'selected':''}>未知</option>
            </select>
        </div>
    </label>
    <label>
        <div class="left"></div>
        <div class="right">
           <input type="submit" value="保存"/>
        </div>
    </label>
</div>
</form>

</body>
</html>
